<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" content="wide=device-width,intial-scale=1,user-scalable=no">
    <title>wuzhi</title>
    <link rel="stylesheet" href="/css/style.css">
    <link rel="stylesheet" href="/libs/css/bootstrap.css">
    <script src="/libs/jquery.js"></script>
    <script src="/libs/js/bootstrap.js"></script>
    <script src="/libs/login.js"></script>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top" style="font-size: 20px" >
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
        </div>
        <div id="navbar" class="collapse navbar-collapse">
            <ul class="nav navbar-nav">
                <% if(user){%>
                <li><a href="/first">首页</a></li>
                <% }else {%>
                <li><a href="/">首页</a></li>
                <% } %>
                <li><a href="/photo">此刻</a></li>
            </ul>
            <% if(user){ %>
            <ul class="nav navbar-nav  navbar-left">
                <li><a  href="/article" class="leftp">我的主页</a></li>
            </ul>
            <ul class="nav navbar-nav  navbar-right">
                <li><a href="/post" >写日记</a></li>
                <li><a href="/personal" >设置</a></li>
                <li><a href="/logout" >退出</a></li>
            </ul>
            <% }else{ %>
            <ul class="nav navbar-nav  navbar-right header">
                <!--导航上的登录暂时使用首页的登录-->
                <li><a href="/regist" class="rightp" >注册</a></li>
                <li><a href="/" onclick="login()">登录</a></li>
            </ul>
            <%}%>
        </div>
    </div>
</nav>
<div class="container">
